﻿//==============================================================
//  Copyright (C) 2017 JonneyDong Inc. All rights reserved.
//
//==============================================================
//  Create by JonneyDong at 2017/3/3 16:58:00.
//  Version 1.0
//  JonneyDong [mailto:jonneydong@gmail.com]
//==============================================================
using Newtonsoft.Json;
using ServiceStack.Redis;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Yoze.Redis.Common
{
    public static class RedisExtends
    {
        public static void AddItemToList<TObject>(this IRedisClient client, string listId, TObject obj) where TObject : class
        {
            client.AddItemToList(listId, JsonConvert.SerializeObject(obj));
            //RedisPoolConfig.DefaultMaxPoolSize
            //new RedisManagerPool().ClientFactory
        }
        //public static async Task<IEnumerable<TObject>> GetAllItemsFromList<TObject>(this IRedisClient client, string listId)

    }
    public class RedisCustomReader : RedisConfig
    {

    }
}
